const state = {
  BitRate: 320000 //  音乐码率 单位kbps 最大999000
}

const actions = {
  change_state ({ commit }, data) {
    if (data.key) {
      commit('CHANGE_STATE', data)
    }
  }
}

const mutations = {
  CHANGE_STATE: (state, { key, value }) => {
    state[key] = value
  }
}

export default {
  namespaced: true,
  state,
  actions,
  mutations
}
